$(document).ready(init);
function init(){
	deleteProduct();
}
function deleteProduct(){
	var wpBox = $('#sample-table-2');
	//var url = window.location;
	$.each($(wpBox).find('.td-actions'),function(index,row){
		$(row).find('.icon-trash').click(function(){
			$.ajax({
				url: 'delete',
				type:'json',
				data:{'id':1},
				beforeSend:function(){

				},
				success: resultDelete
			});
		})
	});
}
function resultDelete(data){
	alert(data);
}